package WWW.SST.LIB;

/** 
 UserInfo ��ժҪ˵����
*/
public class UserInfo
{

	public String mail = "";
	public String sid = "";
	public String sidx = "";
	public String qq = "";
	public int Uid = 0;
	public UserInfo()
	{
		//
		// TODO: �ڴ˴���ӹ��캯���߼�
		//
	}

	public UserInfo(int uid)
	{
		String s = "select * from hy_login_info where hy_num=" + String.valueOf(uid);
		DataTable d = MOLE.SQL.GetDataTable(s);
		if (d.Rows.size() > 0)
		{
			mail = d.Rows[0]["hy_email"].toString().trim();
		}

		Uid = uid;
		MOLE.SQLOS o = new MOLE.SQLOS("user_info_list");
		o.RS(this.Uid);
		d = o.ExecStoreProcess();
		if (d.Rows.size() > 0)
		{
			sidx = d.Rows[0]["shenfenzheng"].toString().trim();
			sid = (new WWW.SST.LIB.EncryptDecrypt()).Decrypt(sidx);
			qq = d.Rows[0]["hy_qq"].toString().trim();

		}
	}
}